Imports StartPoint.BR.Interfaces

Namespace Listados

    Public Class Circuitos
        Inherits StartFrame.US.Listador
        Dim _Circuitos As ICircuitos

#Region " Windows Form Designer generated code "

        Public Sub New()
            MyBase.New()

            'This call is required by the Windows Form Designer.
            InitializeComponent()

            'Add any initialization after the InitializeComponent() call

        End Sub

        'Form overrides dispose to clean up the component list.
        Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
            If disposing Then
                If Not (components Is Nothing) Then
                    components.Dispose()
                End If
            End If
            MyBase.Dispose(disposing)
        End Sub

        'Required by the Windows Form Designer
        Private components As System.ComponentModel.IContainer

        'NOTE: The following procedure is required by the Windows Form Designer
        'It can be modified using the Windows Form Designer.  
        'Do not modify it using the code editor.
        Friend WithEvents cd_circuito As LnkDesdeHastaFK
        Friend WithEvents cd_transaccion As LnkDesdeHastaFK
        Friend WithEvents lblcd_transaccion As LnkControls.LnkLabel
        <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
            Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Circuitos))
            Me.cd_circuito = New LnkDesdeHastaFK
            Me.cd_transaccion = New LnkDesdeHastaFK
            Me.lblcd_transaccion = New LnkControls.LnkLabel
            Me.TabPage1.SuspendLayout()
            Me.Contenedor.SuspendLayout()
            CType(Me.lnk_dataSet, System.ComponentModel.ISupportInitialize).BeginInit()
            Me.SuspendLayout()
            '
            'cmdMinimizar
            '
            Me.cmdMinimizar.Image = CType(resources.GetObject("cmdMinimizar.Image"), System.Drawing.Image)
            Me.cmdMinimizar.Location = New System.Drawing.Point(491, 0)
            Me.cmdMinimizar.Name = "cmdMinimizar"
            '
            'lblTitulo
            '
            Me.lblTitulo.Name = "lblTitulo"
            Me.lblTitulo.Text = "Listado de Circuitos Workflow"
            '
            'lblReporte
            '
            Me.lblReporte.Location = New System.Drawing.Point(21, 21)
            Me.lblReporte.Name = "lblReporte"
            '
            'StatusBar1
            '



            '
            'TabPage1
            '
            Me.TabPage1.Name = "TabPage1"
            Me.TabPage1.Size = New System.Drawing.Size(483, 306)
            '
            'Contenedor
            '
            Me.Contenedor.Controls.Add(Me.lblcd_transaccion)
            Me.Contenedor.Controls.Add(Me.cd_circuito)
            Me.Contenedor.Controls.Add(Me.cd_transaccion)
            Me.Contenedor.Name = "Contenedor"
            '
            'cboReporte
            '
            Me.cboReporte.ItemHeight = 13
            Me.cboReporte.Location = New System.Drawing.Point(151, 21)
            Me.cboReporte.Name = "cboReporte"
            Me.cboReporte.Size = New System.Drawing.Size(309, 21)
            Me.cboReporte.ValueMember = "ID"
            '
            'cd_circuito
            '
            Me.cd_circuito.BackColor = System.Drawing.SystemColors.ControlLight
            Me.cd_circuito.Desde = ""
            Me.cd_circuito.Hasta = "zzzzzzzzzz"
            Me.cd_circuito.Location = New System.Drawing.Point(128, 8)
            Me.cd_circuito.LvCampo = "cd_circuito"
            Me.cd_circuito.LvTabla = "wcd_circuitos"
            Me.cd_circuito.LvWhere = Nothing
            Me.cd_circuito.Name = "cd_circuito"
            Me.cd_circuito.Size = New System.Drawing.Size(302, 20)
            Me.cd_circuito.TabIndex = 12
            Me.cd_circuito.Valida = False
            '
            'cd_transaccion
            '
            Me.cd_transaccion.BackColor = System.Drawing.SystemColors.ControlLight
            Me.cd_transaccion.Desde = ""
            Me.cd_transaccion.Hasta = "zzzzzzzzzz"
            Me.cd_transaccion.Location = New System.Drawing.Point(128, 32)
            Me.cd_transaccion.LvCampo = "cd_transaccion"
            Me.cd_transaccion.LvTabla = "wad_transacciones"
            Me.cd_transaccion.LvWhere = Nothing
            Me.cd_transaccion.Name = "cd_transaccion"
            Me.cd_transaccion.Size = New System.Drawing.Size(302, 20)
            Me.cd_transaccion.TabIndex = 13
            Me.cd_transaccion.Valida = False
            '
            'lblcd_transaccion
            '
            Me.lblcd_transaccion.BackColor = System.Drawing.Color.Transparent
            Me.lblcd_transaccion.Font = New System.Drawing.Font("Arial", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
            Me.lblcd_transaccion.ForeColor = System.Drawing.Color.DarkBlue
            Me.lblcd_transaccion.Location = New System.Drawing.Point(8, 32)
            Me.lblcd_transaccion.Name = "lblcd_transaccion"
            Me.lblcd_transaccion.Size = New System.Drawing.Size(112, 16)
            Me.lblcd_transaccion.TabIndex = 14
            Me.lblcd_transaccion.Text = "lblcd_transaccion"
            '
            'Circuitos
            '
            Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
            Me.BackgroundImage = CType(resources.GetObject("$this.BackgroundImage"), System.Drawing.Image)
            Me.ClientSize = New System.Drawing.Size(566, 386)
            Me.Name = "Circuitos"
            Me.Text = "WLcircuitos"
            Me.TabPage1.ResumeLayout(False)
            Me.Contenedor.ResumeLayout(False)
            CType(Me.lnk_dataSet, System.ComponentModel.ISupportInitialize).EndInit()
            Me.ResumeLayout(False)

        End Sub

#End Region

        Private Sub Circuito_OnLoadForm(ByRef reportCollection As StartFrame.US.Listador.Reports) Handles MyBase.OnLoadForm

            Try
                'Agrega los reportes
                Dim rpt As Report
                Dim rangoCircuito As New Rango(1, "cd_circuito", cd_circuito)
                Dim rangoTransaccion As New Rango(2, "cd_transaccion", cd_transaccion)

                rpt = New Report(1, "WLcircuitos_Transacciones", "Transacciones", "wlcircuitos_transacciones", "US.spmc.utilitarios.reportes")
                rpt.Rangos.Add(rangoCircuito)
                rpt.Rangos.Add(rangoTransaccion)
                reportCollection.Add(rpt)

                rpt = New Report(2, "WLcircuitos_Alertas", "Puntos de Control", "wlcircuitos_alertas", "US.spmc.utilitarios.reportes")
                rpt.Rangos.Add(rangoCircuito)
                rpt.Rangos.Add(rangoTransaccion)
                reportCollection.Add(rpt)

                rpt = New Report(3, "WLcircuitos_Seguridad", "Seguridad", "wlcircuitos_seguridad", "US.spmc.utilitarios.reportes")
                rpt.Rangos.Add(rangoCircuito)
                rpt.Rangos.Add(rangoTransaccion)
                reportCollection.Add(rpt)

                'Referencia el objeto de negocios relacionado
                _Circuitos = CType(RemotingHelper.getObject(GetType(ICircuitos)), ICircuitos)
                Me.ObjetoReglasNegocio = _Circuitos

            Catch ex As Exception
                StartFrame.US.Display.ShowError(ex.Message)

            End Try

        End Sub

    End Class

End Namespace
